--- 矩形信息
---
--- @class Rectangle2
Rectangle2 = ClientFight.CreateClass("Rectangle2")
local Rectangle2 = Rectangle2

--- @public
--- @return Rectangle2
function Rectangle2:ctor(floats)
    if floats then
        self:Rectangle2(floats);
    else
        self.length = 0
        self.width = 0
    end
end
function Rectangle2:Rectangle2(floats)
    self.length = floats[1];
    self.width = floats[2];
end

function Rectangle2:toString()
    return self.length .. "," .. self.width;
end
